<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id='example'></div>
    <script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
    <script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
    <script>
        var child1 = React.createElement('li', {id:"li1"}, 'one');
        var child2 = React.createElement('li', null, 'two');
        var child3 =  React.createElement('p', {className:"xiaopi"}, 'three');

        var content = React.createElement('ul', { className: 'teststyle' }, child1, child2,child3); // 第三个参数可以分开也可以写成一个数组
        ReactDOM.render(
          content,
        document.getElementById('example')
      );





    </script>

</body>
</html>